package com.eduction.service;

import java.sql.SQLException;

import com.eduction.modules.system.entity.ApplyFile;
import com.eduction.modules.system.entity.ApplyFileBase;
import com.eduction.modules.system.entity.ApplyFileBaseDetail;
import com.eduction.modules.system.entity.ApplyFileBaseScore;

public interface ApplyFileService {

	/**
	 * 查询学校提交的自评表
	 * @throws SQLException 
	 */
	public ApplyFile queryApplyFileBySchoolId(String schoolId,String sonTargetId) throws SQLException;
	
	/**
	 * 保存该校的自评表
	 */
	public void saveAppplyFile(ApplyFile a);

	ApplyFileBase queryApplyFileBaseBySchoolId(String schoolId) throws SQLException;
	/**
	 * 保存学校自评表基础信息
	 */
	public void saveAppplyFileBase(ApplyFileBase a)  throws SQLException;

	void deleteApplyFile(String pId);

	/**
	 * 保存学校自评表基础信息详情
	 * @param baseDetail
	 */
	void saveAppplyFileBaseDetail(ApplyFileBaseDetail baseDetail) throws SQLException;

	/**
	 * 查询学校自评表基础信息详情
	 * @param schoolId
	 * @return
	 * @throws SQLException
	 */
	ApplyFileBaseDetail queryApplyFileBaseDetailBySchoolId(String schoolId) throws SQLException;

	/**
	 *
	 * @param baseScore
	 * @throws SQLException
	 */
	void saveAppplyFileBaseScore(ApplyFileBaseScore baseScore) throws SQLException;

	/**
	 * 查询学校自评表基础信息评分
	 * @param schoolId
	 * @return
	 * @throws SQLException
	 */
	ApplyFileBaseScore queryApplyFileBaseScoreBySchoolId(String schoolId) throws SQLException;
}
